
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreProductAttrResultRequest struct {

	ProductId string `json:"product_id" form:"product_id"`

	Result string `json:"result" form:"result"`

	ChangeTime string `json:"change_time" form:"change_time"`

	Type string `json:"type" form:"type"`

}

func (r *StoreProductAttrResultRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreProductAttrResultRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"product_id": "required",

		"result": "required",

		"change_time": "required",

		"type": "required",

	}
}

func (r *StoreProductAttrResultRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductAttrResultRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductAttrResultRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
